| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ScriptManager.h
1 // ScriptManager.h
3 //
5
6 namespace nkScripts
7 {
15 class ScriptManager final : public nkCommon::SingletonClass<ScriptManager>
16 {
17 public :
18
27 Script* createOrRetrieve (nkMemory::StringView name) ;
34 Script* get (nkMemory::StringView name) ;
43 Script* getByIndex (unsigned int id) ;
50 void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
56 void erase (nkMemory::StringView name) ;
57 } ;
58 }
nkScripts::ScriptManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkScripts
Encompasses all API of component NilkinsScripts.
Definition: Environment.h:7
nkScripts::Script
Holds all information for a script.
Definition: Script.h:14
nkScripts::ScriptManager::getByIndex
Script * getByIndex(unsigned int id)
nkScripts::ScriptManager
Manages the scripts available in the component.
Definition: ScriptManager.h:16
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkScripts::ScriptManager::get
Script * get(nkMemory::StringView name)
nkScripts::ScriptManager::createOrRetrieve
Script * createOrRetrieve(nkMemory::StringView name)
nkScripts::ScriptManager::erase
void erase(nkMemory::StringView name)